//
//  ClassificationCollectionViewCell.m
//  BakeCenter
//
//  Created by 杨洋 on 15/9/23.
//  Copyright (c) 2015年 Baked. All rights reserved.
//

#import "ClassificationCollectionViewCell.h"

@implementation ClassificationCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLabel = [[UILabel alloc] init];
//        self.nameLabel.backgroundColor = [UIColor burntOrangeColor];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        self.nameLabel.layer.cornerRadius = 5;
        self.nameLabel.layer.masksToBounds = YES;
        self.nameLabel.layer.borderWidth = 1;
        self.nameLabel.layer.borderColor = [[UIColor colorWithWhite:0.9 alpha:1] CGColor];
        [self.contentView addSubview:self.nameLabel];
        
        [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self).insets(UIEdgeInsetsMake(0, 0, 10, 0));
        }];
    }
    return self;
}

@end
